﻿using Microsoft.EntityFrameworkCore;
using Recommend.API.Data.Core;
using Recommend.API.Data.Mapping;

namespace Recommend.API.Data
{
    public class ProjectRecommendContext
        :DbContext
    {
        public ProjectRecommendContext(DbContextOptions<ProjectRecommendContext> dbContextOptions)
            :base(dbContextOptions)
        {}

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
            modelBuilder.ApplyConfiguration(new ProjectRecommendMap());
            base.OnModelCreating(modelBuilder);
        }

        public virtual DbSet<ProjectRecommend> ProjectRecommend { get; set; }
    }
}
